graphical method to solve linear equations